/*
 * @Author: your name
 * @Date: 2021-08-12 09:07:53
 * @LastEditTime: 2021-11-26 20:47:15
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\admin\src\main.js
 */
import Router from "vue-router";
const routerPush = Router.prototype.push;
Router.prototype.push = function push(location) {
    undefined;
    return routerPush.call(this, location).catch((error) => error);
};
import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import Antd from "ant-design-vue";
import "element-ui/lib/theme-chalk/index.css";
import "ant-design-vue/dist/antd.css"; // or 'ant-design-vue/dist/antd.less'
import VMdEditor from "@kangc/v-md-editor";
import "@kangc/v-md-editor/lib/style/base-editor.css";
import githubTheme from "@kangc/v-md-editor/lib/theme/github.js";
import "@kangc/v-md-editor/lib/theme/style/github.css";

// highlightjs
import hljs from "highlight.js";

VMdEditor.use(githubTheme, {
    Hljs: hljs,
});

Vue.use(VMdEditor);
//点击copy指令
import Directives from "./utils/directives";
//挂载
Vue.use(Directives);

Vue.use(Antd);
Vue.use(ElementUI);
Vue.config.productionTip = false;
import * as Echarts from "echarts";
Vue.prototype.$Echarts = Echarts;
new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");